<?php
$base = "http://" . $_SERVER['SERVER_NAME'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en">
    <head>
        <meta charset="utf-8">            
            <meta name="viewport" content="width=device-width, initial-scale=1.0">
                <meta name="description" content="">
                    <meta name="author" content="">

                        <!-- Le styles -->
                        <script src="<?= $base ?>/bootstrap/js/jquery.min.js"></script>
                        <link href="<?= $base ?>/bootstrap/css/bootstrap.css" rel="stylesheet" />
                        <script src="<?= $base ?>/bootstrap/js/bootstrap.js"></script>                        
                        <style type="text/css">
                            body {
                                padding-top: 60px;
                                padding-bottom: 40px;
                            }
                        </style>
                        <link href="<?= $base ?>/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">

                            <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
                            <!--[if lt IE 9]>
                              <script src="<?= $base ?>/bootstrap/js/html5shiv.js"></script>
                            <![endif]-->

                            <!-- Fav and touch icons -->    
                            <!--<link rel="shortcut icon" href="../assets/ico/favicon.png">-->
                            </head>

                            <body>

                                <div class="navbar navbar-fixed-top">
                                    <div class="navbar-inner">
                                        <div class="container">
                                            <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                                                <span class="icon-bar"></span>
                                                <span class="icon-bar"></span>
                                                <span class="icon-bar"></span>
                                            </button>
                                            <a class="brand" href="<?= $this->url(array(), 'admin'); ?>">ADMIN</a>
                                            <div class="nav-collapse collapse">
                                                <ul class="nav pull-right">
                                                    <?php if (Zend_Auth::getInstance()->hasIdentity()): ?>
                                                        <li key="home"><a href="<?= $this->url(array(), 'admin'); ?>"><i class="icon-home"></i> Dashboard</a></li>
                                                        <li key="adminusers"><a href="<?= $this->url(array(), 'adminusers'); ?>"><i class="icon-user"></i> Members</a></li>
                                                        <li class="dropdown" key="adminsettings"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-wrench"></i> Settings <b class="caret"></b></a>
                                                            <ul class="dropdown-menu">
                                                                <li><a href="<?= $this->url(array(), 'adminsettings'); ?>"><i class="icon-leaf"></i> System Settings</a></li>
                                                                <li><a href="<?= $this->url(array(), 'adminusertype'); ?>"><i class="icon-list-alt"></i> User Type</a></li>
                                                                <li><a href="<?= $this->url(array(), 'adminmembertype'); ?>"><i class="icon-user"></i> Membership Type</a></li>
                                                                <li><a href="<?= $this->url(array(), 'adminapi'); ?>"><i class="icon-briefcase"></i> API KEY</a></li>
                                                                <li class="divider"></li>
                                                                <li><a href="<?= $this->url(array(), 'state-add'); ?>"><i class="icon-list-alt"></i> State</a></li>
                                                                <li><a href="<?= $this->url(array(), 'city-add'); ?>"><i class="icon-list-alt"></i> City</a></li>                                                                
                                                                <li><a href="<?= $this->url(array(), 'zip-add'); ?>"><i class="icon-list-alt"></i> Zipcode</a></li>
                                                                <li><a href="<?= $this->url(array(), 'manage-all-state'); ?>"><i class="icon-list-alt"></i> Manage [State with City]</a></li>
                                                            </ul>
                                                        </li>
                                                        <li><a href="<?= $this->url(array(), 'adminlogout'); ?>"><i class="icon-off"></i> Logout</a></li>
                                                    <?php else: ?>
                                                        <li><a href="<?= $this->url(array(), 'adminlogin'); ?>"><i class="icon-off"></i>  Login</a></li>
                                                    <?php endif; ?>
                                                    <li><a target="_blank" href="<?= $this->url(array(), 'home'); ?>"><i class="icon-arrow-right"></i> Go to Site</a></li>
                                                </ul>
                                            </div><!--/.nav-collapse -->
                                        </div>
                                    </div>
                                </div>

                                <div class="container">
                                    <?php echo $this->layout()->content ?>
                                    <!--     
                                           Example row of columns 
                                          <div class="row">
                                            <div class="span4">
                                              <h2>Heading</h2>
                                              <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
                                              <p><a class="btn" href="#">View details &raquo;</a></p>
                                            </div>
                                            <div class="span4">
                                              <h2>Heading</h2>
                                              <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
                                              <p><a class="btn" href="#">View details &raquo;</a></p>
                                           </div>
                                            <div class="span4">
                                              <h2>Heading</h2>
                                              <p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
                                              <p><a class="btn" href="#">View details &raquo;</a></p>
                                            </div>
                                          </div>-->

                                    <hr>

                                        <footer>
                                            <p>&copy; SpearBall Inc. 2013</p>
                                        </footer>

                                </div> <!-- /container -->
                            </body>
                            </html>
